import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  // mode:"history",
  routes: [
    {
      path: '/',
      name: 'home',
      component: ()=> import('@/view/home') //主页
    },
    {
      path: '/whatsapp',
      name: 'whatsapp',
      component: ()=> import('@/view/whatsapp') //whatsapp拓客系统
    },
    {
      path: '/facebook',
      name: 'facebook',
      component: ()=> import('@/view/facebook') //facebook拓客系统
    },
    {
      path: '/mayday',
      name: 'mayday',
      component: ()=> import('@/view/mayday') //51客服系统
    },
    {
      path: '/extens',
      name: 'extens',
      component: ()=> import('@/view/extens') //海外引流推广
    },
    {
      path: '/xinxi',
      name: 'xinxi',
      component: ()=> import('@/view/xinxi') //whatsapp相关信息
    },
    {
      path: '/xinxlist',
      name: 'xinxlist',
      component: ()=> import('@/view/xinxlist') //whatsapp相关信息列表
    },
    {
      path: '/we',
      name: 'we',
      component: ()=> import('@/view/we') //联系我们
    },
  ],
  scrollBehavior(to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
